from celery import Celery

import os

if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'meiduo_sp.settings.dev'

celery_conn = Celery()

celery_conn.config_from_object('celery_tasks.config')

# celery_conn.config_from_object('celery_tasks.sms')
celery_conn.autodiscover_tasks(['celery_tasks.sms', 'celery_tasks.email'])
